let obj = {
    name: 'zl',
    age: 18
}

let arr = [
    {name: 'zl'},
    {name: 'ls'},
    {name: 'zs'},
    {name: 'ww'}
]
const proxyObj = new Proxy(obj, {
    get(targer, key) {
        console.log('获取')
    },
    set(targer, key, newValue) {
        console.log('设置')
    }
})

console.log(proxyObj.name)
proxyObj.age = 30

arr.forEach(item => {
    if ('name' in item) {
        console.log('zl 在')
    }
})